package com.qlzb.taskmanagement.repositoty;

import com.qlzb.taskmanagement.entity.TimingTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TimingRepository extends JpaRepository<TimingTask,Long> {

    /*
     * 根据id查询
     * */
    @Query(value = "select * from timing_task where id = :id", nativeQuery = true)
    TimingTask findByByPrimaryKey(@Param("id") String id);



}
